<% person = @invitation_request.person %>
<p>
	<span class="model_name"><%= h person.name %></span>
	<span id="person_location" class="model_data">(<%= h person.location %>)</span> <br />

	<% if !person.url.blank? %>
		<span id="person_url" class="model_data">
			<a href="<%= person.url %>" target="_blank"><%= person.url %></a>
		</span>
		<br />
	<% end %>

	<% if !@invitation_request.comment.blank? %>
		<span id="information_request_comment" class="model_data">
			<%= h @invitation_request.comment %>
		</span>
		<br />
	<% end %>
	<% form_for :invitation_request, :url => declined_invitation_requests_path(), :method => :post do |form| %>
		<%= hidden_field_tag "id", @invitation_request.id %>
		<p>
			<%= form.text_area :status_reason, :cols => 60, :rows => 4, :value => "Unfortunately, due to demand and limited space for the event, we were not able to accommodate you." %>
		</p>
		<p>
			<%= submit_tag "Decline" %>
			or
			<%= link_to "cancel", invitation_requests_path() %>
		</p>
	<% end %>
</p>
